<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>系统基础设置</title>
    <link rel="shortcut icon" href="favicon.ico">
    <link href="/static/manager/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="/static/manager/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="/static/manager/css/animate.min.css" rel="stylesheet">
    <link href="/static/manager/css/style.min.css?v=4.0.0" rel="stylesheet"><base target="_blank">
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        
        
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>系统基本参数设置</h5>
                    </div>
                    <div class="ibox-content">
                        <form class="form-horizontal m-t">
                            <div class="form-group">
                                <label class="col-sm-3 control-label">网站名称：</label>
                                <div class="col-sm-8">
                                    <input name="set_title" class="form-control" type="text" value="{$setc.set_title}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">网站描述：</label>
                                <div class="col-sm-8">
                                    <input name="set_discription" class="form-control" type="text" value="{$setc.set_discription}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">SEO关键字：</label>
                                <div class="col-sm-8">
                                    <input name="set_keywords" class="form-control" type="text"  value="{$setc.set_keywords}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">双轨分红：</label>
                                <div class="col-sm-8">
                                    <input name="set_rate" class="form-control" type="text"  value="{$setc.set_rate}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">对碰奖一级别：</label>
                                <div class="col-sm-8">
                                    <input name="set_dp_yiji" class="form-control" type="text"  value="{$setc.set_dp_yiji}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">对碰奖二级别：</label>
                                <div class="col-sm-8">
                                    <input name="set_dp_erji" class="form-control" type="text"  value="{$setc.set_dp_erji}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">对碰奖三级别：</label>
                                <div class="col-sm-8">
                                    <input name="set_dp_sanji" class="form-control" type="text"  value="{$setc.set_dp_sanji}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">对碰封顶：</label>
                                <div class="col-sm-8">
                                    <input name="set_dp_top" class="form-control" type="text"  value="{$setc.set_dp_top}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">一级直推奖：</label>
                                <div class="col-sm-8">
                                    <input name="set_zt_erji" class="form-control" type="text"  value="{$setc.set_zt_erji}">
                                </div>
                            </div>
                            <div class="form-group">
                                <label class="col-sm-3 control-label">二级直推奖：</label>
                                <div class="col-sm-8">
                                    <input name="set_zt_sanji" class="form-control" type="text"  value="{$setc.set_zt_sanji}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">矩阵一级：</label>
                                <div class="col-sm-8">
                                    <input name="set_jzbd_yiji" class="form-control" type="text"  value="{$setc.set_jzbd_yiji}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">矩阵二级：</label>
                                <div class="col-sm-8">
                                    <input name="set_jzbd_erji" class="form-control" type="text"  value="{$setc.set_jzbd_erji}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">矩阵三级：</label>
                                <div class="col-sm-8">
                                    <input name="set_jzbd_sanji" class="form-control" type="text"  value="{$setc.set_jzbd_sanji}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">矩阵四级：</label>
                                <div class="col-sm-8">
                                    <input name="set_jzbd_siji" class="form-control" type="text"  value="{$setc.set_jzbd_siji}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">矩阵五级：</label>
                                <div class="col-sm-8">
                                    <input name="set_jzbd_wuji" class="form-control" type="text"  value="{$setc.set_jzbd_wuji}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">矩阵六级：</label>
                                <div class="col-sm-8">
                                    <input name="set_jzbd_liuji" class="form-control" type="text"  value="{$setc.set_jzbd_liuji}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">矩阵收益见点奖：</label>
                                <div class="col-sm-8">
                                    <input name="set_jz_jd" class="form-control" type="text"  value="{$setc.set_jz_jd}">
                                </div>
                            </div>

                            <div class="form-group">
                                <label class="col-sm-3 control-label">矩阵收益匹配奖：</label>
                                <div class="col-sm-8">
                                    <input name="set_jz_pp" class="form-control" type="text"  value="{$setc.set_jz_pp}">
                                </div>
                            </div>

                            <div class="form-group">
                                <div class="col-sm-8 col-sm-offset-3">
                                    <button class="btn btn-primary" id="tjbut" type="button">保存设置</button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
       
    </div>
    <script src="/static/manager/js/jquery.min.js?v=2.1.4"></script>
    <script src="/static/manager/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="/static/manager/js/content.min.js?v=1.0.0"></script>
    <script src="/static/manager/js/plugins/validate/jquery.validate.min.js"></script>
    <script src="/static/manager/js/plugins/validate/messages_zh.min.js"></script>
    <script src="/static/manager/js/demo/form-validate-demo.min.js"></script>
    <script>
        $(document).ready(function(){
            $("#tjbut").click(function () {
                var set_title=$("input[name='set_title']").val();
                var set_keywords=$("input[name='set_keywords']").val();
                var set_discription=$("input[name='set_discription']").val();
                var set_rate=$("input[name='set_rate']").val();
                var set_dp_yiji=$("input[name='set_dp_yiji']").val();
                var set_dp_erji=$("input[name='set_dp_erji']").val();
                var set_dp_sanji=$("input[name='set_dp_sanji']").val();
                var set_dp_top=$("input[name='set_dp_top']").val();
                var set_zt_erji=$("input[name='set_zt_erji']").val();
                var set_zt_sanji=$("input[name='set_zt_sanji']").val();
                var set_jzbd_yiji=$("input[name='set_jzbd_yiji']").val();
                var set_jzbd_erji=$("input[name='set_jzbd_erji']").val();
                var set_jzbd_sanji=$("input[name='set_jzbd_sanji']").val();
                var set_jzbd_siji=$("input[name='set_jzbd_siji']").val();
                var set_jzbd_wuji=$("input[name='set_jzbd_wuji']").val();
                var set_jzbd_liuji=$("input[name='set_jzbd_liuji']").val();
                var set_jz_jd=$("input[name='set_jz_jd']").val();
                var set_jz_pp=$("input[name='set_jz_pp']").val();

                $.post("/manager/Index/xt_set_do",{
                    set_title:set_title,
                    set_keywords:set_keywords,
                    set_discription:set_discription,
                    set_rate:set_rate,
                    set_dp_yiji:set_dp_yiji,
                    set_dp_erji:set_dp_erji,
                    set_dp_sanji:set_dp_sanji,
                    set_dp_top:set_dp_top,
                    set_zt_erji:set_zt_erji,
                    set_zt_sanji:set_zt_sanji,
                    set_jzbd_yiji:set_jzbd_yiji,
                    set_jzbd_erji:set_jzbd_erji,
                    set_jzbd_sanji:set_jzbd_sanji,
                    set_jzbd_siji:set_jzbd_siji,
                    set_jzbd_wuji:set_jzbd_wuji,
                    set_jzbd_liuji:set_jzbd_liuji,
                    set_jz_jd:set_jz_jd,
                    set_jz_pp:set_jz_pp
                },function(result){
                    if(result==200){
                        alert("系统设置成功！");
                        window.location.reload();
                    }else {
                        alert(result);
                    }

                });
            });
        });
    </script>
</body>

</html>